﻿/*
 * File nay se chua tat ca cac ham de thao tac den
 * CSDL trong chuong trinh
 */

using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using System;

using QLDV.ViewModels;
namespace QLDV.Models
{
    public interface IQLDVRepository
    {

        #region DoanVien
        DOANVIEN LayDoanVien(int id);
        void CapNhatDV(int madv, DOANVIEN dv);
        void CapNhatGiaDinh(int id, GIADINH gd);
        void XoaGiaDinh(int idDvGd);
        void ThemGiaDinh(GIADINH gd);
        #endregion

        #region CSD
        CSD LayCSD(int idcsd);
        void CapNhatCSD(int id, CSD csd);
        MANGHOATDONG LayMangHD();
        #endregion

        #region Account
        TAIKHOAN ValidateUser(string loginName, string password);
        TAIKHOAN FindAccountID(string name);
        #endregion

        /************************************************************************/
        /* Author TanNM                                                                     */
        /************************************************************************/
        #region LOAICSD
        string InsertLoaiCSD(LoaiCSDModel loaiCSD);
        bool UpdateLoaiCSD(LoaiCSDModel loaiCSD);
        List<LOAICSD> GetAllLoaiCSD();
        LOAICSD GetByIdLoaiCSD(int id);
        bool DeleteLoaiCSD(int id);
        #endregion


        #region CSD
        List<CSD> GetAllCsd();
        List<CSD> GetByIdLoaiCSD_CSD(int id_loaiCsd);
        string InsertCSD(CSD csd);
        #endregion

    }
}